module.exports = function($scope,items,$resource,$modalInstance){
    $scope.info={};
    $scope.info=items;
    if(items.pic_url!=undefined){
        var imgjson=[];
        var imgStr=items.pic_url.substr(2,items.pic_url.length-4);
        var imgArr=imgStr.split("\",\"");
        for(var j=0;j<imgArr.length;j++){
        var json={};
        json.img=imgArr[j];
        imgjson.push(json);
        }
        $scope.imagearr=imgjson;
    }
    $scope.cancel = function () {
            $modalInstance.dismiss('cancel');
    };   
}